import request from '@/utils/request'
const API_NAME = '/api/hosp/schedule'
export default{
  // 根据医院编号 和 科室编号 ，查询排班规则数据
  getBookingScheduleRule(page, limit, hoscode, depcode) {
    return request({
      url: `${API_NAME}/auth/getBookingScheduleRule/${page}/${limit}/${hoscode}/${depcode}`,
      method: 'get'
    })
  },

  // 查询排班详情
  getScheduleDetailList(hoscode, depcode, workDate){
    return request({
      url: `${API_NAME}/auth/findScheduleList/${hoscode}/${depcode}/${workDate}`,
      method: 'get'
    })
  },

  // 根据排班id获取排班
  getSchedule(scheduleId) {
    return request({
      url: `${api_name}/getSchedule/${scheduleId}`,
      method: 'get'
    })
  }



}
